package com.lwc.cfdns.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lwc.cfdns.pojo.bo.system.CateBO;
import com.lwc.cfdns.pojo.dto.system.CateDTO;
import com.lwc.cfdns.pojo.entity.SystemCate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lwc.cfdns.pojo.vo.system.CateTreeVO;
import com.lwc.cfdns.pojo.vo.system.CateVO;

import java.util.List;
import java.util.Map;

/**
 * @author spring
 * @description 针对表【cfdns_system_cate(后台通用分类)】的数据库操作Service
 * @createDate 2023-05-30 22:30:14
 */
public interface SystemCateService extends IService<SystemCate> {

    /**
     * 创建
     *
     * @param cateDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/30 22:37
     */
    Map<String, Object> create(CateDTO cateDTO);

    /**
     * 修改
     *
     * @param cateDTO
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/30 22:38
     */
    Map<String, Object> update(CateDTO cateDTO);

    /**
     * 详情
     *
     * @param id
     * @return CateVO
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/30 22:42
     */
    CateVO view(Long id);

    /**
     * 删除
     *
     * @param ids
     * @return Map<String, Object>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/30 22:43
     */
    Map<String, Object> delete(String ids);

    /**
     * 列表
     *
     * @param cateBO
     * @return IPage<SystemCate>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/30 22:55
     */
    IPage<SystemCate> lists(CateBO cateBO);

    /**
     * 树
     *
     * @param cateBO
     * @return List<CateTreeVO>
     * @throws
     * @version 1.0.0
     * @author luwc
     * @time 2023/5/30 23:22
     */
    List<CateTreeVO> tree(CateBO cateBO);
}
